#pragma once
#include <iostream>
#include <vector>
#include <functional>
#include <unistd.h>

//定义任务列表
using Task = std::function<void(void)>;

void TaskOne(){
    std::cout << "[" << getpid() << "]" << "Is Executing ---> TaskOne : Data Updata" << std::endl;
}

void TaskTow(){
    std::cout << "[" << getpid() << "]" << "Is Executing ---> TaskTow : Rendering" << std::endl;
}

void TaskThree(){
    std::cout << "[" << getpid() << "]" << "Is Executing ---> TaskThree : Collision determination" << std::endl;
}

void TaskFour(){
    std::cout << "[" << getpid() << "]" << "Is Executing ---> TaskFour : Determine updates" << std::endl;
}

void LoadTasks(std::vector<Task>& Tasks){
    Tasks.push_back(TaskOne);
    Tasks.push_back(TaskTow);
    Tasks.push_back(TaskThree);
    Tasks.push_back(TaskFour);
}
